<!DOCTYPE html>
<html>
    {include file="Widgets/head" /}
    <style>
        img{width: 200px}
    </style>
    <body class="gray-bg">
        <div class="wrapper wrapper-content animated fadeInUp">
            <div class="ibox-title">
                <h3>商户信息</h3>
            </div>
            <div class="ibox-content">
                <div class="row">
                    <div class="form-group col-sm-12">
                        <label class="col-sm-offset-1 col-sm-1 control-label">审核状态：通过</label>
                        <label class="col-sm-3 control-label">审核时间：{:date('Y-m-d H:i:s',$merchant['check_at'])}</label>
                    </div>
                </div>
                <ul id="myTab" class="nav nav-tabs">
                    <li class="active"><a href="#home1" data-toggle="tab">配置信息</a></li>
                    <li><a href="#home2" data-toggle="tab">基本信息</a></li>
                    <li><a href="#home3" data-toggle="tab">法人信息</a></li>
                    <li><a href="#home4" data-toggle="tab">银行卡信息</a></li>
                    <li><a href="#home5" data-toggle="tab">其他信息</a></li>
                </ul>
                <div id="myTabContent" class="tab-content">
                    <div class="tab-pane fade in active" style="padding-top: 20px" id="home1">
                        <div class="row">
                            <div class="form-group col-sm-12">
                                <label class="col-sm-1 control-label text-right">商户ID：</label>
                                <div class="col-sm-1">
                                    {$user['uid']}
                                </div>
                            </div>
                            <div class="form-group col-sm-12">
                                <label class="col-sm-1 control-label text-right">登录邮箱：</label>
                                <div class="col-sm-1">
                                    {$user['user_email']}
                                </div>
                            </div>
                            <div class="form-group col-sm-12">
                                <label class="col-sm-1 control-label text-right">展业：</label>
                                <div class="col-sm-11">
                                    {if ($car)}
                                    <div class="col-sm-3">
                                        <div class="panel panel-info">
                                            <div class="panel-heading">
                                                <h3 class="panel-title">
                                                    <a data-toggle="collapse" href="#car">车贷</a>
                                                </h3>
                                            </div>
                                            <div id="car" class="panel-collapse collapse in">
                                                <div class="panel-body text-center">
                                                    <div class="row">
                                                        <div class="col-sm-6">期限（天）</div>
                                                        <div class="col-sm-6">总成本利率</div>
                                                    </div>
                                                    {foreach $car as $key => $val} 
                                                    <div class="hr-line-dashed"></div>
                                                    <div class="row">
                                                        <div class="col-sm-6">{$key}</div>
                                                        <div class="col-sm-6">{$val . '%'}</div>
                                                    </div>
                                                    {/foreach}
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-1"></div>
                                    {/if}
                                    {if ($consume)}
                                    <div class="col-sm-3">
                                        <div class="panel panel-info">
                                            <div class="panel-heading">
                                                <h3 class="panel-title">
                                                    <a data-toggle="collapse" href="#consume">消费贷</a>
                                                </h3>
                                            </div>
                                            <div id="consume" class="panel-collapse collapse in">
                                                <div class="panel-body text-center">
                                                    <div class="row">                                                        
                                                        <div class="col-sm-6">期限（天）</div>
                                                        <div class="col-sm-6">总成本利率</div>
                                                    </div>
                                                    {foreach $consume as $key => $val} 
                                                    <div class="hr-line-dashed"></div>
                                                    <div class="row">
                                                        <div class="col-sm-6">{$key}</div>
                                                        <div class="col-sm-6">{$val . '%'}</div>
                                                    </div>
                                                    {/foreach}
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-1"></div>
                                    {/if}
                                    {if ($other)}
                                    <div class="col-sm-3">
                                        <div class="panel panel-info">
                                            <div class="panel-heading">
                                                <h3 class="panel-title">
                                                    <a data-toggle="collapse" href="#other">其他类</a>
                                                </h3>
                                            </div>
                                            <div id="other" class="panel-collapse collapse in">
                                                <div class="panel-body text-center">
                                                    <div class="row">
                                                        <div class="col-sm-6">期限（天）</div>
                                                        <div class="col-sm-6">总成本利率</div>
                                                    </div>
                                                    {foreach $other as $key => $val} 
                                                    <div class="hr-line-dashed"></div>
                                                    <div class="row">
                                                        <div class="col-sm-6">{$key}</div>
                                                        <div class="col-sm-6">{$val . '%'}</div>
                                                    </div>
                                                    {/foreach}
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    {/if}    
                                </div>
                            </div>
                            <div class="form-group col-sm-12">
                                <label class="col-sm-1 control-label text-right">SFTP空间：</label>
                                <div class="col-sm-11">
                                    {$merchant['sftp']}
                                </div>
                            </div>
                            <div class="form-group col-sm-12">
                                <label class="col-sm-1 control-label text-right">保证金：</label>
                                <div class="col-sm-11">
                                    {$merchant['bond']}
                                </div>
                            </div>
                            <div class="form-group col-sm-12">
                                <label class="col-sm-1 control-label text-right">空间登录名：</label>
                                <div class="col-sm-11">
                                    {$merchant['login_name']}
                                </div>
                            </div>
                            <div class="form-group col-sm-12">
                                <label class="col-sm-1 control-label text-right">空间登录密码：</label>
                                <div class="col-sm-11">
                                    <button data-text="{$merchant['login_password']}" data-toggle="modal"
                                        data-target=".gsyg-modal-pw" class="btn btn-primary">查看
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                                     
                    <div class="tab-pane fade in"  style="padding-top: 20px" id="home2">
                        <div class="form-group col-sm-12">
                            <label class="col-sm-2 control-label text-right">企业名称：</label>
                            <div class="col-sm-10">
                                {$company['company_name']}
                            </div>
                        </div>
                        <div class="form-group col-sm-12">
                            <label class="col-sm-2 control-label text-right">企业网址：</label>
                            <div class="col-sm-10">
                                {$company['website']}
                            </div>
                        </div>
                        <div class="form-group col-sm-12">
                            <label class="col-sm-2 control-label text-right">企业地址：</label>
                            <div class="col-sm-10">
                                {$company['address']}
                            </div>
                        </div>
                        <div class="form-group col-sm-12">
                            <label class="col-sm-2 control-label text-right">企业简介：</label>
                            <div class="col-sm-10">
                                {$company['summary']}
                            </div>
                        </div>
                        <div class="form-group col-sm-12">
                            <label class="col-sm-2 control-label text-right">营业范围：</label>
                            <div class="col-sm-10">
                                {$company['business_scope']}
                            </div>
                        </div>
                        <div class="form-group col-sm-12">
                            <label class="col-sm-2 control-label text-right">组织机构代码：</label>
                            <div class="col-sm-10">
                                {$company['organization_no']}
                            </div>
                        </div>
                        <div class="form-group col-sm-12">
                            <label class="col-sm-2 control-label text-right">营业执照号：</label>
                            <div class="col-sm-10">
                                {$company['license_no']}
                            </div>
                        </div>
                        <div class="form-group col-sm-12">
                            <label class="col-sm-2 control-label text-right">营业执照有效期：</label>
                            <div class="col-sm-10">
                                {$company['license_expire_date']}
                            </div>
                        </div>
                        <div class="form-group col-sm-12">
                            <label class="col-sm-2 control-label text-right">营业执照所在地：</label>
                            <div class="col-sm-10">
                                {$company['license_address']}
                            </div>
                        </div>
                        <div class="row col-sm-12">
                            <div class="col-sm-2"> </div>
                            <?php   $file_name = date('Y-m-d',strtotime($company['create_time']));   ?>
                            <div class="col-sm-2">
                                <img width="200px" src="/uploads/company/<?php echo $company['user_id'].'/yyzz.jpg'; ?>">
                            </div>
                            <div class="col-sm-2">
                                <img width="200px" src="/uploads/company/<?php echo $company['user_id'].'/zzjgz.jpg'; ?>">
                            </div>
                            <div class="col-sm-2">
                                <img width="200px" src="/uploads/company/<?php echo $company['user_id'].'/swdjz.jpg'; ?>">
                            </div>
                        </div>
                    </div>
                    
                    <div class="tab-pane fade in"  style="padding-top: 20px" style="padding-top: 20px" id="home3">
                        <div class="form-group col-sm-12">
                            <label class="col-sm-1 control-label text-right">企业法人：</label>
                            <div class="col-sm-11">
                                {$company['legal_person']}
                            </div>
                        </div>
                        <div class="form-group col-sm-12">
                            <label class="col-sm-1 control-label text-right">法人手机号：</label>
                            <div class="col-sm-11">
                                {$company['legal_person_phone']}
                            </div>
                        </div>
                        <div class="form-group col-sm-12">
                            <label class="col-sm-1 control-label text-right">法人身份证：</label>
                            <div class="col-sm-11">
                                {$company['cert_no']}
                            </div>
                        </div>
                        <div class="form-group col-sm-12">
                            <label class="col-sm-1 control-label text-right">图片信息：</label>
                            <div class="col-sm-11">
                                <div class="col-md-4">
                                    <img width="200px" src="/uploads/company/<?php echo $company['user_id'].'/frzjz.jpg'; ?>">
                                    <span class="help-block m-b-none"></span>
                                </div>
                                <div class="col-md-4">
                                    <img width="200px" src="/uploads/company/<?php echo $company['user_id'].'/frzjf.jpg'; ?>">
                                    <span class="help-block m-b-none"></span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group col-sm-12">
                            <label class="col-sm-1 control-label text-right">联系电话：</label>
                            <div class="col-sm-11">
                                {$company['telephone']}
                            </div>
                        </div>
                        <div class="form-group col-sm-12">
                            <label class="col-sm-1 control-label text-right">联系email：</label>
                            <div class="col-sm-11">
                                {$company['email']}
                            </div>
                        </div>
                    </div>
                                        
                    <div class="tab-pane fade in" style="padding-top: 20px" id="home4">
                        <div class="form-group col-sm-12">
                            <label class="col-sm-1 control-label text-right">开户银行：</label>
                            <div class="col-sm-11">
                                {$company['bank_code']}
                            </div>
                        </div>
                        <div class="form-group col-sm-12">
                            <label class="col-sm-1 control-label text-right">开户卡号：</label>
                            <div class="col-sm-11">
                                {$company['bank_account_no']}
                            </div>
                        </div>
                        <div class="form-group col-sm-12">
                            <label class="col-sm-1 control-label text-right">开户省市：</label>
                            <div class="col-sm-11">
                                {$company['province']}{$company['city']}
                            </div>
                        </div>
                        <div class="form-group col-sm-12">
                            <label class="col-sm-1 control-label text-right">开户支行名称：</label>
                            <div class="col-sm-11">
                                {$company['bank_branch']}
                            </div>
                        </div>
                        <div class="form-group col-sm-12">
                            <label class="col-sm-1 control-label text-right">图片信息：</label>
                            <div class="col-md-11">
                                <img width="200px" src="/uploads/company/<?php echo $company['user_id'].'/jsxkz.jpg'; ?>">
                            </div>
                        </div>
                    </div>
                    
                    <div class="tab-pane fade in" style="padding-top: 20px" id="home5">
                        {if (isset($files))}
                        <div class="row">
                            <label class="col-sm-1 control-label text-right">电子资料附件：</label>
                            <div class="col-sm-2">
                                {foreach $files as $val} 
                                    <a href="{$val['url']}" download="{$val['title']}">{$val['title']}</a>
                                    <br />
                                {/foreach}
                            </div>
                        </div>
                        {/if}
                    </div>
                </div>
                
                <div class="row">
                    <div class="col-sm-12">
                        <div class="ibox-title">
                            <h3 class="text-center"><span style="color: #cc181b">*</span>如需修改商户信息，请编辑修改内容发送至xups@8518.com。</h3>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <div class="modal fade gsyg-modal-pw" style="margin-top:10%;" tabindex="-1" role="dialog"
            aria-labelledby="mySmallModalLabel">
           <div class="modal-dialog modal-sm" style="width:500px;">
               <div class="modal-content">
                   <div class="modal-header">
                       <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                   aria-hidden="true">×</span></button>
                       <h4 class="modal-title" id="mySmallModalLabel">SFTP空间登录密码</h4>
                   </div>
                   <div class="modal-body">
                       <form id="text">
                           <span id="text"></span>
                       </form>
                   </div>
               </div>
           </div>
       </div>
    </body>
</html>